package org.jeecg.modules.oms.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 领料单配件明细表
 */
@Data
@TableName("wms_requisition_accessory")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "wms_requisition_accessory对象", description = "领料单配件明细表")
public class WmsRequisitionAccessoryVO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键ID")
    private String id;

    /**
     * 领料单ID
     */
    @ApiModelProperty(value = "领料单ID")
    private String requisitionId;

    /**
     * 窗号
     */
    @Excel(name = "窗号", width = 15)
    @ApiModelProperty(value = "窗号")
    private String windowNo;

    /**
     * 配件编号
     */
    @Excel(name = "配件编号", width = 15)
    @ApiModelProperty(value = "配件编号")
    private String accessoryCode;

    /**
     * 配件名称
     */
    @Excel(name = "配件名称", width = 20)
    @ApiModelProperty(value = "配件名称")
    private String accessoryName;

    /**
     * 规格
     */
    @Excel(name = "规格", width = 15)
    @ApiModelProperty(value = "规格")
    private String specification;

    /**
     * 数量
     */
    @Excel(name = "数量", width = 15)
    @ApiModelProperty(value = "数量")
    private Integer quantity;

    /**
     * 长度/数量
     */
    @Excel(name = "长度/数量", width = 15)
    @ApiModelProperty(value = "长度/数量")
    private String lengthQuantity;

    /**
     * 单位
     */
    @Excel(name = "单位", width = 10)
    @ApiModelProperty(value = "单位")
    private String unit;

    /**
     * 品牌
     */
    @Excel(name = "品牌", width = 15)
    @ApiModelProperty(value = "品牌")
    private String brand;

    /**
     * 领料状态（0:未领料,1:已领料,2:部分领料）
     */
    @Excel(name = "领料状态", width = 15, dicCode = "requisition_item_status")
    @ApiModelProperty(value = "领料状态（0:未领料,1:已领料,2:部分领料）")
    @Dict(dicCode = "requisition_item_status")
    private Integer status;

    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createBy;

    /**
     * 创建时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private String updateBy;

    /**
     * 更新时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    /**
     * 租户ID
     */
    @ApiModelProperty(value = "租户ID")
    private Integer tenantId;
} 